package com.luoxin.apipassenger.service;

import com.luoxin.apipassenger.remote.ServicePriceClient;
import com.luoxin.internalcommon.dto.ResponseResult;
import com.luoxin.internalcommon.request.ForecastPriceDTO;
import com.luoxin.internalcommon.response.ForecastPriceResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;

@Service
@Slf4j
public class ForecastPriceService {
    @Autowired
    private ServicePriceClient servicePriceClient;
    public ResponseResult forecastPrice(ForecastPriceDTO forecastPriceDTO)
    {
        log.info("调用计价服务，计算价格！！！");
        ResponseResult forecastPriceResponseResult = servicePriceClient.forecastPrice(forecastPriceDTO);
        return forecastPriceResponseResult;
    }
}
